#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

sudo rm -v /usr/bin/share_it_daemon
sudo ln -s $DIR/share_it_daemon.sh /usr/bin/share_it_daemon
sudo rm -v /usr/bin/share_it
sudo ln -s $DIR/share_it.sh /usr/bin/share_it
echo "Use 'share_it_daemon' to start daemon, use 'share_it PUBLISH', 'share_it GRAB', 'share_it STOP' to control daemon"

